/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package com.dp.vo;

import java.io.Serializable;
import java.util.Date;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 *
 * @author wyr
 */
@Entity
@Table(name = "t_orderRespLog")
//@NamedQueries({@NamedQuery(name = "TorderRespLog.findAll", query = "SELECT t FROM TorderRespLog t"), @NamedQuery(name = "TorderRespLog.findById", query = "SELECT t FROM TorderRespLog t WHERE t.id = :id"), @NamedQuery(name = "TorderRespLog.findByOrderCode", query = "SELECT t FROM TorderRespLog t WHERE t.orderCode = :orderCode"), @NamedQuery(name = "TorderRespLog.findByOrderTime", query = "SELECT t FROM TorderRespLog t WHERE t.orderTime = :orderTime"), @NamedQuery(name = "TorderRespLog.findByTimeLength", query = "SELECT t FROM TorderRespLog t WHERE t.timeLength = :timeLength"), @NamedQuery(name = "TorderRespLog.findByAmount", query = "SELECT t FROM TorderRespLog t WHERE t.amount = :amount"), @NamedQuery(name = "TorderRespLog.findByProdectType", query = "SELECT t FROM TorderRespLog t WHERE t.prodectType = :prodectType"), @NamedQuery(name = "TorderRespLog.findByServiceCode", query = "SELECT t FROM TorderRespLog t WHERE t.serviceCode = :serviceCode"), @NamedQuery(name = "TorderRespLog.findByMerchantCode", query = "SELECT t FROM TorderRespLog t WHERE t.merchantCode = :merchantCode"), @NamedQuery(name = "TorderRespLog.findByMsisdn", query = "SELECT t FROM TorderRespLog t WHERE t.msisdn = :msisdn"), @NamedQuery(name = "TorderRespLog.findByProdectCode", query = "SELECT t FROM TorderRespLog t WHERE t.prodectCode = :prodectCode"), @NamedQuery(name = "TorderRespLog.findByProductNum", query = "SELECT t FROM TorderRespLog t WHERE t.productNum = :productNum"), @NamedQuery(name = "TorderRespLog.findByResult", query = "SELECT t FROM TorderRespLog t WHERE t.result = :result"), @NamedQuery(name = "TorderRespLog.findByPayChannel", query = "SELECT t FROM TorderRespLog t WHERE t.payChannel = :payChannel"), @NamedQuery(name = "TorderRespLog.findByOrderMode", query = "SELECT t FROM TorderRespLog t WHERE t.orderMode = :orderMode"), @NamedQuery(name = "TorderRespLog.findByBillPolicy", query = "SELECT t FROM TorderRespLog t WHERE t.billPolicy = :billPolicy"), @NamedQuery(name = "TorderRespLog.findByResptime", query = "SELECT t FROM TorderRespLog t WHERE t.resptime = :resptime")})
public class TorderRespLog implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(name = "id")
    private Integer id;
    @Column(name = "orderCode")
    private String orderCode;
    @Column(name = "orderTime")
    @Temporal(TemporalType.DATE)
    private Date orderTime;
    @Column(name = "timeLength")
    private Integer timeLength;
    @Column(name = "amount")
    private Integer amount;
    @Column(name = "prodectType")
    private String prodectType;
    @Column(name = "serviceCode")
    private String serviceCode;
    @Column(name = "merchantCode")
    private String merchantCode;
    @Column(name = "msisdn")
    private String msisdn;
    @Column(name = "prodectCode")
    private String prodectCode;
    @Column(name = "productNum")
    private Integer productNum;
    @Column(name = "result")
    private Integer result;
    @Column(name = "payChannel")
    private Integer payChannel;
    @Column(name = "orderMode")
    private Integer orderMode;
    @Column(name = "billPolicy")
    private Integer billPolicy;
    @Basic(optional = false)
    @Column(name = "resptime")
    @Temporal(TemporalType.TIMESTAMP)
    private Date resptime;

    public TorderRespLog() {
    }

    public TorderRespLog(Integer id) {
        this.id = id;
    }

    public TorderRespLog(Integer id, Date resptime) {
        this.id = id;
        this.resptime = resptime;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getOrderCode() {
        return orderCode;
    }

    public void setOrderCode(String orderCode) {
        this.orderCode = orderCode;
    }

    public Date getOrderTime() {
        return orderTime;
    }

    public void setOrderTime(Date orderTime) {
        this.orderTime = orderTime;
    }

    public Integer getTimeLength() {
        return timeLength;
    }

    public void setTimeLength(Integer timeLength) {
        this.timeLength = timeLength;
    }

    public Integer getAmount() {
        return amount;
    }

    public void setAmount(Integer amount) {
        this.amount = amount;
    }

    public String getProdectType() {
        return prodectType;
    }

    public void setProdectType(String prodectType) {
        this.prodectType = prodectType;
    }

    public String getServiceCode() {
        return serviceCode;
    }

    public void setServiceCode(String serviceCode) {
        this.serviceCode = serviceCode;
    }

    public String getMerchantCode() {
        return merchantCode;
    }

    public void setMerchantCode(String merchantCode) {
        this.merchantCode = merchantCode;
    }

    public String getMsisdn() {
        return msisdn;
    }

    public void setMsisdn(String msisdn) {
        this.msisdn = msisdn;
    }

    public String getProdectCode() {
        return prodectCode;
    }

    public void setProdectCode(String prodectCode) {
        this.prodectCode = prodectCode;
    }

    public Integer getProductNum() {
        return productNum;
    }

    public void setProductNum(Integer productNum) {
        this.productNum = productNum;
    }

    public Integer getResult() {
        return result;
    }

    public void setResult(Integer result) {
        this.result = result;
    }

    public Integer getPayChannel() {
        return payChannel;
    }

    public void setPayChannel(Integer payChannel) {
        this.payChannel = payChannel;
    }

    public Integer getOrderMode() {
        return orderMode;
    }

    public void setOrderMode(Integer orderMode) {
        this.orderMode = orderMode;
    }

    public Integer getBillPolicy() {
        return billPolicy;
    }

    public void setBillPolicy(Integer billPolicy) {
        this.billPolicy = billPolicy;
    }

    public Date getResptime() {
        return resptime;
    }

    public void setResptime(Date resptime) {
        this.resptime = resptime;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof TorderRespLog)) {
            return false;
        }
        TorderRespLog other = (TorderRespLog) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.dp.vo.TorderRespLog[id=" + id + "]";
    }

}
